home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4952 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: jeremyx@ix.netcom.com(Jeremy Johnston )
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: IMPORTANT!!!!!!!!!!!!!!!!!!!!!
  5. Date: 1 Feb 1996 20:52:03 GMT
  6. Organization: Netcom
  7. Message-ID: <4er95j$5hh@cloner4.netcom.com>
  8. References: <4epb8s$9gp@reader2.ix.netcom.com> <311043bd.32347008@nntp.ix.netcom.com>
  9. NNTP-Posting-Host: hun-al1-11.ix.netcom.com
  10. X-NETCOM-Date: Thu Feb 01 12:52:03 PM PST 1996
  11.  
  12. In <311043bd.32347008@nntp.ix.netcom.com> miker3@ix.netcom.com (Mike
  13. Rubenstein) writes: 
  14. >
  15. >jeremyx@ix.netcom.com(Jeremy Johnston ) wrote:
  16. >
  17. >> 
  18. >> 
  19. >> 
  20. >>         For some reason i can never get the \ to print! How do you
  21. get
  22. >> the \ to show up on the screen when you run the program?? 
  23. >> 
  24. >> ex:
  25. >> 
  26. >> 
  27. >> printf(" i can never get the \ to print");
  28. >> printf(" do you like dogs\cats?");
  29. >> 
  30. >>     after i compile the program & run it the "\" doesn'y show up?
  31. >> please help!?
  32. >> 
  33. >
  34. >In C++ literal strings, \ is an escape character.  You need something
  35. >like
  36. >
  37. >    printf(" i can never get the \\ to print");
  38. >    printf(" do you like dogs\\cats?");
  39. >
  40. >
  41. >Michael M Rubenstein
  42.  
  43.  so your saying i just gotta make two of them & it will work?
  44.